$(document).ready(function(){
	//themes, change CSS with JS
	$("#menu_"+$("#currentMenu").val()).addClass("active");
	//animating menus on hover
	$('ul.main-menu li:not(.nav-header)').hover(function(){
		$(this).animate({'margin-left':'+=5'},300);
	},
	function(){
		$(this).animate({'margin-left':'-=5'},300);
	});
	//other things to do on document ready, seperated for ajax calls
	$('textarea.autogrow').autogrow();	//chosen - improves select
	//$('[data-rel="chosen"],[rel="chosen"]').chosen();
	docReady();
});
function docReady(){
	//prevent # links from moving to top
	$('a[href="#"][data-top!=true]').click(function(e){
		e.preventDefault();
	});
}
